package com.shinhye.elephantsafe;

import android.app.TabActivity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TabHost;
import android.widget.TabHost.TabSpec;

public class CleanActivity extends TabActivity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_clean_index);
		
		TabHost host = getTabHost();
		TabSpec spec1 = host.newTabSpec("cache");
		TabSpec spec2 = host.newTabSpec("sdrubbish");
		
		spec1.setIndicator("缓存清理", getResources().getDrawable(R.drawable.clean_cache_icon)); //TODO -3- 图标设置点击选择器
		spec2.setIndicator("SD卡清理", getResources().getDrawable(R.drawable.clean_sdcard_icon));
		
		spec1.setContent(new Intent(this, CleanCacheActivity.class));
		spec2.setContent(new Intent(this, CleanSDActivity.class));
		
		host.addTab(spec1);
		host.addTab(spec2);
	}
}
